<layout name="layout" />
<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" class="table">
        <div class="table-responsive">
        <table cellspacing="1" cellpadding="3" width="100%" class="table">
                <tr>
                    <td class="label">会员编号：</td>
                    <td>
                        <label>
                            <input type="text" name="code" value="{:generateCode()}"/>
                        </label>
                    </td>
                </tr>
            <tr>
                <td class="label">姓名：</td>
                <td>
                    <label>
                        <input type="text" name="username" value=""/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">性别：</td>
                <td>
                    <label>
                        <select name="sex" >
                            <option  value="男">男 &nbsp;&nbsp;&nbsp;</option>
                            <option value="女">女</option>
                            <option value="" disabled></option>
                        </select>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">手机：</td>
                <td>
                    <label>
                        <input type="text" name="telphone" value=""/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">头像：</td>
                <td>
                	<input type="file" name="face" /> 
                </td>
            </tr>
            <tr>
                <td class="label">积分：</td>
                <td>
                    <label>
                        <input type="text" name="jifen" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">级别：</td>
                <td>
                    <label>
                        <input type="text" name="level" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">状态：</td>
                <td>
                    <label>
                        <select name="" >
                            <option  value="1">启用 &nbsp;&nbsp;&nbsp;</option>
                            <option value="0">禁用</option>
                            <option value="" disabled></option>
                        </select>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">卡号：</td>
                <td>
                    <label>
                        <input type="text" name="kahao" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">卡项：</td>
                <td>
                    <label>
                        {:buildSelect('card','card_id','id','alias');}
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">分类：</td>
                <td>
                    <label>
                        <input type="text" name="member_cat" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">专修：</td>
                <td>
                    <label>
                        <input type="text" name="member_hobby" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">员工：</td>
                <td>
                    <label>
                        <input type="text" name="work_man" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">介绍人：</td>
                <td>
                    <label>
                        <input type="text" name="intro_man" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">余额：</td>
                <td>
                    <label>
                        <input type="text" name="member_account" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">折扣：</td>
                <td>
                    <label>
                        <input type="text" name="member_zk" value="0"/>
                    </label>
                </td>
            </tr>
            <tr>
                <td class="label">来源：</td>
                <td>
                    <input  type="text" name="from" value="0" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
        </div>
    </form>
</div>


<script>
$("#start_time").datepicker(); 
$("#end_time").datepicker(); 
</script>